﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniErp.Entity.DataStreams.DOs.AssetManagement
{
    /// <summary>
    /// 资产修改记录表实体
    /// </summary>
    /// 
    [Table("AssetModificationRecord")]
    public class AssetModificationRecord : BaseEntity
    {
        /// <summary>
        /// 资产修改记录Id
        /// </summary>
        [Key]
        [ConcurrencyCheck]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int AMRId { get; set; }
        /// <summary>
        /// 资产操作时间
        /// </summary>
        public DateTime RecordTime { get; set; }

        /// <summary>
        /// 资产总编号
        /// </summary>
        [Required]
        public string AllId { get; set; }

        /// <summary>
        /// 资产操作后名
        /// </summary>
        [Required]
        public string AssetName { get; set; }
        /// <summary>
        /// 资产操作后状态名
        /// </summary>
        public string AssetStateName { get; set; }

        /// <summary>
        /// 资产操作后位置
        /// </summary>
        public string PositionName { get; set; }
        /// <summary>
        /// 资产操作后部门
        /// </summary>
        public string DepartmentName { get; set; }
        /// <summary>
        /// 资产操作后持有人工号
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 资产操作后持有人姓名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 操作管理员工号
        /// </summary>
        /// 
        [Required]
        public int AdminId { get; set; }
        /// <summary>
        /// 操作管理员姓名
        /// </summary>
        [Required]
        public string AdminIdName { get; set; }

        #region 导航属性
        /// <summary>
        /// 资产操作类型Id
        /// </summary>
        public int assetModificationTypeId { get; set; }
        public virtual AssetModificationType assetModificationType { get; set; }
        #endregion

    }
}
